$OpenBSD: patch-jq_test_c,v 1.1 2014/11/02 12:01:00 sthen Exp $
--- jq_test.c.orig	Sun Nov  2 11:56:44 2014
+++ jq_test.c	Sun Nov  2 11:56:48 2014
@@ -73,7 +73,7 @@ static void run_jq_tests(FILE *testdata) {
         printf("\n");
         pass = 0;
       }
-      jv as_string = jv_dump_string(jv_copy(expected), rand() & ~JV_PRINT_COLOUR);
+      jv as_string = jv_dump_string(jv_copy(expected), arc4random() & ~JV_PRINT_COLOUR);
       jv reparsed = jv_parse_sized(jv_string_value(as_string), jv_string_length_bytes(jv_copy(as_string)));
       assert(jv_equal(jv_copy(expected), jv_copy(reparsed)));
       jv_free(as_string);
